﻿<!--
Copyright © 1998, 2009, Oracle and/or its affiliates.  All rights reserved.
-->
<!--Version 9.5.0.8-->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title></title>
    <style type="text/css">
        div.odtext
        {
            font-family: tahoma;
            font-size: 11pt;
            font-weight: normal;
            height: 70px;
        }
        div.odcont
        {
            border-right: 0px solid;
            padding-right: 6px;
            border-top: 0px solid;
            padding-left: 0px;
            padding-bottom: 0px;
            overflow: auto;
            border-left: 0px solid;
            padding-top: 0px;
            border-bottom: 0px solid;
        }
    </style>
    <script type="text/javascript" src="scripts/oddefs.js"></script>
    <script type="text/javascript" src="scripts/odgatewaydefs.js"></script>
    <script type="text/javascript" src="scripts/odplaybackdefs.js"></script>
    <script type="text/javascript" src="scripts/odhelper.js"></script>
    <script type="text/javascript" src="odbrand.js"></script>
</head>
<body bgcolor="#ece9d8">
    <table style="height: 100%; width: 100%">
        <tbody>
            <tr style="height: 80%">
                <td style="width: 20%" align="center" valign="middle">
                    <div id='odicon'>
                        <img alt="" id="icon" src='images/information.gif' />
                    </div>
                </td>
                <td style="width: 80%">
                    <div class='odtext' id='odtext' style="width: 100%; height: 100%; overflow: auto;">
                    </div>
                </td>
            </tr>
            <tr style="height: 5%">
            </tr>
            <tr style="height: 15%">
                <td id='button' align='center' colspan="2">
                </td>
            </tr>
        </tbody>
    </table>
</body>

<script type="text/javascript">
    document.title = Gkod.Variables.OD_BRAND;
    //document.body.offsetWidth 484/504 or 284/304 FF/IE

    var div = document.getElementById('odtext');
    if (document.body.offsetWidth > 400) {
        //div.setAttribute('style', "width:300px; height:200px; overflow: auto");
        div.style.width = '300px';
        div.style.height = '200px';
    } else {
        //div.setAttribute("style", "width:200px; height:100px; overflow: auto");
        div.style.width = '200px';
        div.style.height = '100px';
    }

    var sParam = document.location.search.substr(1);
    var sArray = sParam.split('&');

    var errtext = "";
    var errtype = 1;
    var errtitle = "";
    var errcontent = "";

    for (var i = 0; i < sArray.length; i++) {
        var param = sArray[i].split("=");
        if (typeof (param[1]) == 'string') {
            if (param[0] == "errtext") {
                errtext = Gkod.Utility.Decode(param[1]);
            }
            else if (param[0] == "errtype") {
                errtype = Gkod.Utility.Decode(param[1]);
            }
            else if (param[0] == "errtitle") {
                errtitle = Gkod.Utility.Decode(param[1]);
            }
            else if (param[0] == "errcontent") {
                errcontent = Gkod.Utility.Decode(param[1]);
            }
        }
    }

    if (errtitle != "") {
        document.title = errtitle;
    }

    if (parseInt(errtype) == 2)
        document.getElementById('icon').src = "images/warn.gif";
    else if (parseInt(errtype) == 3)
        document.getElementById('icon').src = "images/critical.gif";

    var button1 = "<DIV align=center><INPUT type=button  value='  Ok  ' onclick='window.close()'></DIV>";
    var button2 = "<DIV align=center><INPUT type=button  value='  Yes  ' onclick='SetValue(1)'>&nbsp;&nbsp;<INPUT type=button  value='   No   ' onclick='SetValue(0);'></DIV>";

    if (errcontent != "") {
        document.getElementById('button').innerHTML = button2;
    }
    else
        document.getElementById('button').innerHTML = button1;

    document.getElementById("odtext").innerHTML = errtext;

    function SetValue(rep) {
        if (rep == 0)
            window.close();
        else if (rep == 1)
            Gkod.Gateway.OpenWindow(errcontent + '/smarthelpsetup.html', true);
    }
</script>
</html>
